import type { Router } from 'vue-router'
import { setupProgressGuard } from '/@/router/guard/progress.ts'
import { setupDocumentTitleGuard } from '/@/router/guard/title.ts'
import { setupPermissionsGuard } from '/@/router/guard/permissions.ts'

export function setupRouterGuard(router: Router) {
  setupProgressGuard(router)
  setupPermissionsGuard(router)
  setupDocumentTitleGuard(router)
}
